package com.camel.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.camel.core.entity.BasePaginationEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @TableName tb_api
 */
@TableName(value = "tb_api")
@Data
public class TbApi extends BasePaginationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 数据源ID
     */
    @TableField(value = "source_id")
    private Integer sourceId;

    /**
     * 模式
     */
    @TableField(value = "schema_name")
    private String schemaName;

    /**
     * 表中文名
     */
    @TableField(value = "table_desc")
    private String tableDesc;

    /**
     * 表名
     */
    @TableField(value = "table_name")
    private String tableName;

    /**
     * 请求名称
     */
    @TableField(value = "request_name")
    private String requestName;

    /**
     * 请求地址
     */
    @TableField(value = "request_url")
    private String requestUrl;

    /**
     * 请求方式
     */
    @TableField(value = "request_method")
    private String requestMethod;

    /**
     * 参数类型
     */
    @TableField(value = "request_params")
    private String requestParams;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
